<template>
  <div>
    <div>
      <h1>testSideBar</h1>
    </div>
  </div>
</template>

<script setup lang="ts">
import { dialogReady } from "../common";
import { onMounted, onUnmounted } from "vue";

let msgHandler = (e: any) => {
  alert(e.data.msgName);
  window.opener.postMessage({ msgName: "hello", value: "I am your son." });
};

onMounted(() => {
  console.log("ready", Date.now());
  window.addEventListener("message", msgHandler);
  dialogReady();
});
</script>

<style scoped></style>
